﻿using System.Windows;

namespace ToyChat.BuiltinModules
{
    /// <summary>
    /// An interface describing dialogs for ToyChat.BuiltinModules
    /// </summary>
    public interface IDialog
    {
        /// <summary>
        /// Gets the main input element of this dialog
        /// </summary>
        IInputElement MainInput { get; }

        /// <summary>
        /// Fired when the dialog has been confirmed
        /// </summary>
        event RoutedEventHandler OK;

        /// <summary>
        /// Fired when the dialog has been canceled
        /// </summary>
        event RoutedEventHandler Cancel;
    }
}